package lxt.service;

import java.util.List;

import lxt.entity.DriverInfo;

public interface DriverService {
	/**
	 * 加载驾驶员信息 (分页)
	 * @return
	 */
	public List<DriverInfo> loadDriver(String name,String driverLicense,int offset, int length)throws Exception;
	/**
	 * 添加驾驶员
	 */
	public boolean addDriver(DriverInfo driver)throws Exception;
	/**
	 * 根据id查找驾驶员
	 */
	public DriverInfo loadDriverById(String driverId)throws Exception;
	/**
	 * 修改驾驶员
	 */
	public boolean updateDriver(DriverInfo driver)throws Exception;
	/**
	 * 删除驾驶员
	 */
	public boolean deleteDriver(String driverId)throws Exception;
	/**
	 * 查询数量
	 */
	public int loadAllDriverCount(String name,String driverLicense)throws Exception;
	/**
	 * 根据name查找驾驶员
	 */
	public List<DriverInfo> loadDriverByName(String name)throws Exception;
	/**
	 * 查询驾驶员信息
	 */
	public List<DriverInfo> loadAll()throws Exception;
}
